﻿namespace Xms.Abp;

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class UIColumnAttribute: Attribute
{
    public int Order { get; set; }
    public string Title { get; set; }
    public bool Editable { get; set; }
    public UIColumnFixedType? Fixed { get; set; }
    public string LocalizationKey { get; set; }
    public bool Sortable { get; set; }
    public int SorterMultiple { get; set; }
    public UIColumnAlignType Align { get; set; } = UIColumnAlignType.Left;
    public string Icon { get; set; }
    public string Format { get; set; }
    public string SwitchText { get; set; }
    public UIColumnAttribute(int order, string displayName = null, string format = null)
    {
        Order = order;
        Title = displayName;
        Format = format;
    }
}
